#ifndef ConsoleChannel_INCLUDED
#define ConsoleChannel_INCLUDED

#include "channel.h"
#include "mutex.h"
#include <ostream>

using std::ostream;

class ConsoleChannel: public Channel
{
public:
    ConsoleChannel();
    ConsoleChannel(ostream& stream);

    virtual void log(const LogMsg& msg);

    virtual Channel_Type type()
    {
        return Channel_Type_Console;
    }

protected:
    ~ConsoleChannel();

private:
    ostream& m_stream;
};

#endif



